package cn.tedu.tmall.common.web;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum ServiceCode {
    SUCCESS(1000, "操作成功"),
    FAIL(2000, "操作失败"),

    ERROR_UNAUTHORIZED(4001,"验证未通过"),

    USER_STATE_DISABLED(5001,"操作权限禁用"),
    USER_ADDRESS_ERROR(5002,"收货地址错误"),

    GOODS_NOT_EXIST(6001,"商品不存在"),
    GOODS_NOT_PUT_ON(6002,"商品已下架"),

    ORDER_CREATE_ERROR( 7001, "创建订单失败"),

    JWT_ERROR(10001, "JWT验证失败");

    private Integer code;
    private String msg;

}
